define({ "api": [
  {
    "success": {
      "fields": {
        "Success 200": [
          {
            "group": "Success 200",
            "optional": false,
            "field": "varname1",
            "description": "<p>No type.</p>"
          },
          {
            "group": "Success 200",
            "type": "String",
            "optional": false,
            "field": "varname2",
            "description": "<p>With type.</p>"
          }
        ]
      }
    },
    "type": "",
    "url": "",
    "version": "0.0.0",
    "filename": "./public/apidoc/main.js",
    "group": "D:\\千锋长沙\\CSH52107.4\\day04\\1.code\\admin_zouxiu\\public\\apidoc\\main.js",
    "groupTitle": "D:\\千锋长沙\\CSH52107.4\\day04\\1.code\\admin_zouxiu\\public\\apidoc\\main.js",
    "name": ""
  },
  {
    "type": "post",
    "url": "sys/addMeun",
    "title": "添加菜单",
    "version": "1.0.0",
    "name": "addRole",
    "group": "Meun模块",
    "parameter": {
      "fields": {
        "Parameter": [
          {
            "group": "Parameter",
            "type": "Number",
            "optional": false,
            "field": "parentId",
            "description": "<p>父id</p>"
          },
          {
            "group": "Parameter",
            "type": "String",
            "optional": false,
            "field": "parentName",
            "description": "<p>父菜单名</p>"
          },
          {
            "group": "Parameter",
            "type": "String",
            "optional": false,
            "field": "name",
            "description": "<p>菜单名称</p>"
          },
          {
            "group": "Parameter",
            "type": "String",
            "optional": false,
            "field": "direct",
            "description": "<p>菜单表示 sys:meun</p>"
          },
          {
            "group": "Parameter",
            "type": "String",
            "optional": false,
            "field": "url",
            "description": "<p>路径  sys/meun</p>"
          },
          {
            "group": "Parameter",
            "type": "String",
            "optional": false,
            "field": "type",
            "description": "<p>&quot;&quot;</p>"
          },
          {
            "group": "Parameter",
            "type": "String",
            "optional": false,
            "field": "icon",
            "description": "<p>菜单图标</p>"
          },
          {
            "group": "Parameter",
            "type": "String",
            "optional": false,
            "field": "orderNum",
            "description": "<p>菜单排序号</p>"
          },
          {
            "group": "Parameter",
            "type": "String",
            "optional": false,
            "field": "open",
            "description": "<p>是否默认打开 0</p>"
          },
          {
            "group": "Parameter",
            "type": "String",
            "optional": false,
            "field": "list",
            "description": ""
          }
        ]
      }
    },
    "success": {
      "fields": {
        "Success 200": [
          {
            "group": "Success 200",
            "type": "Number",
            "optional": false,
            "field": "code",
            "description": "<p>结果标识</p>"
          },
          {
            "group": "Success 200",
            "type": "String",
            "optional": false,
            "field": "msg",
            "description": "<p>结果说明</p>"
          }
        ]
      },
      "examples": [
        {
          "title": "Success-Response:",
          "content": "\n {\n    code: 200,\n    msg: \"添加菜单成功\"\n}",
          "type": "json"
        }
      ]
    },
    "filename": "./controller/Meun.Controller.js",
    "groupTitle": "Meun模块"
  },
  {
    "type": "post",
    "url": "sys/deleteMeun",
    "title": "(软)删除菜单",
    "version": "1.0.0",
    "name": "deleteMeun",
    "group": "Meun模块",
    "parameter": {
      "fields": {
        "Parameter": [
          {
            "group": "Parameter",
            "type": "Number",
            "optional": false,
            "field": "menuId",
            "description": "<p>菜单id</p>"
          }
        ]
      }
    },
    "success": {
      "fields": {
        "Success 200": [
          {
            "group": "Success 200",
            "type": "Number",
            "optional": false,
            "field": "code",
            "description": "<p>结果标识</p>"
          },
          {
            "group": "Success 200",
            "type": "String",
            "optional": false,
            "field": "msg",
            "description": "<p>结果说明</p>"
          }
        ]
      },
      "examples": [
        {
          "title": "Success-Response:",
          "content": "\n{\n   code: 200,\n   msg: \"删除菜单成功\"\n}",
          "type": "json"
        }
      ]
    },
    "filename": "./controller/Meun.Controller.js",
    "groupTitle": "Meun模块"
  },
  {
    "type": "get",
    "url": "sys/getMeuns",
    "title": "获取所有的菜单",
    "version": "1.0.0",
    "name": "getMeuns",
    "group": "Meun模块",
    "success": {
      "fields": {
        "Success 200": [
          {
            "group": "Success 200",
            "type": "Number",
            "optional": false,
            "field": "code",
            "description": "<p>结果标识</p>"
          },
          {
            "group": "Success 200",
            "type": "String",
            "optional": false,
            "field": "msg",
            "description": "<p>结果说明</p>"
          }
        ]
      },
      "examples": [
        {
          "title": "Success-Response:",
          "content": "\n{\n     msg: \"查询成功\"\n     code: 200 \n     data: [] 递归的树\n}",
          "type": "json"
        }
      ]
    },
    "filename": "./controller/Meun.Controller.js",
    "groupTitle": "Meun模块"
  },
  {
    "type": "get",
    "url": "sys/getMeunsByRole",
    "title": "获取当前角色的菜单",
    "version": "1.0.0",
    "name": "getMeunsByRole",
    "group": "Meun模块",
    "parameter": {
      "fields": {
        "Parameter": [
          {
            "group": "Parameter",
            "type": "Number",
            "optional": false,
            "field": "rId",
            "description": "<p>角色id</p>"
          }
        ]
      }
    },
    "success": {
      "fields": {
        "Success 200": [
          {
            "group": "Success 200",
            "type": "Number",
            "optional": false,
            "field": "code",
            "description": "<p>结果标识</p>"
          },
          {
            "group": "Success 200",
            "type": "String",
            "optional": false,
            "field": "msg",
            "description": "<p>结果说明</p>"
          }
        ]
      },
      "examples": [
        {
          "title": "Success-Response:",
          "content": "\n{\n     msg: \"查询成功\"\n     code: 200 \n     data: []  // menuId 菜单\n}",
          "type": "json"
        }
      ]
    },
    "filename": "./controller/Meun.Controller.js",
    "groupTitle": "Meun模块"
  },
  {
    "type": "get",
    "url": "sys/updateMeunsByRole",
    "title": "角色设置菜单",
    "version": "1.0.0",
    "name": "getMeunsByRole",
    "group": "Meun模块",
    "parameter": {
      "fields": {
        "Parameter": [
          {
            "group": "Parameter",
            "type": "Number",
            "optional": false,
            "field": "rId",
            "description": "<p>角色id</p>"
          },
          {
            "group": "Parameter",
            "type": "Array",
            "optional": false,
            "field": "menuIdList",
            "description": "<p>菜单编号</p>"
          }
        ]
      }
    },
    "success": {
      "fields": {
        "Success 200": [
          {
            "group": "Success 200",
            "type": "Number",
            "optional": false,
            "field": "code",
            "description": "<p>结果标识</p>"
          },
          {
            "group": "Success 200",
            "type": "String",
            "optional": false,
            "field": "msg",
            "description": "<p>结果说明</p>"
          }
        ]
      },
      "examples": [
        {
          "title": "Success-Response:",
          "content": "\n{\n     msg: \"添加菜单成功\"\n     code: 200 \n}",
          "type": "json"
        }
      ]
    },
    "filename": "./controller/Meun.Controller.js",
    "groupTitle": "Meun模块"
  },
  {
    "type": "post",
    "url": "sys/updateMeun",
    "title": "修改菜单",
    "version": "1.0.0",
    "name": "updateMeun",
    "group": "Meun模块",
    "parameter": {
      "fields": {
        "Parameter": [
          {
            "group": "Parameter",
            "type": "Number",
            "optional": false,
            "field": "menuId",
            "description": "<p>菜单id</p>"
          },
          {
            "group": "Parameter",
            "type": "Number",
            "optional": false,
            "field": "parentId",
            "description": "<p>父id</p>"
          },
          {
            "group": "Parameter",
            "type": "String",
            "optional": false,
            "field": "parentName",
            "description": "<p>父菜单名</p>"
          },
          {
            "group": "Parameter",
            "type": "String",
            "optional": false,
            "field": "name",
            "description": "<p>菜单名称</p>"
          },
          {
            "group": "Parameter",
            "type": "String",
            "optional": false,
            "field": "direct",
            "description": "<p>菜单表示 sys:meun</p>"
          },
          {
            "group": "Parameter",
            "type": "String",
            "optional": false,
            "field": "url",
            "description": "<p>路径  sys/meun</p>"
          },
          {
            "group": "Parameter",
            "type": "String",
            "optional": false,
            "field": "type",
            "description": "<p>&quot;&quot;</p>"
          },
          {
            "group": "Parameter",
            "type": "String",
            "optional": false,
            "field": "icon",
            "description": "<p>菜单图标</p>"
          },
          {
            "group": "Parameter",
            "type": "String",
            "optional": false,
            "field": "orderNum",
            "description": "<p>菜单排序号</p>"
          },
          {
            "group": "Parameter",
            "type": "String",
            "optional": false,
            "field": "open",
            "description": "<p>是否默认打开 0</p>"
          },
          {
            "group": "Parameter",
            "type": "String",
            "optional": false,
            "field": "list",
            "description": ""
          }
        ]
      }
    },
    "success": {
      "fields": {
        "Success 200": [
          {
            "group": "Success 200",
            "type": "Number",
            "optional": false,
            "field": "code",
            "description": "<p>结果标识</p>"
          },
          {
            "group": "Success 200",
            "type": "String",
            "optional": false,
            "field": "msg",
            "description": "<p>结果说明</p>"
          }
        ]
      },
      "examples": [
        {
          "title": "Success-Response:",
          "content": "\n {\n  code: 200,\n  msg: \"修改菜单成功\"\n}",
          "type": "json"
        }
      ]
    },
    "filename": "./controller/Meun.Controller.js",
    "groupTitle": "Meun模块"
  },
  {
    "type": "post",
    "url": "sys/addRole",
    "title": "角色添加",
    "version": "1.0.0",
    "name": "addRole",
    "group": "Role模块",
    "parameter": {
      "fields": {
        "Parameter": [
          {
            "group": "Parameter",
            "type": "String",
            "optional": false,
            "field": "rname",
            "description": "<p>角色名称</p>"
          },
          {
            "group": "Parameter",
            "type": "String",
            "optional": false,
            "field": "desc",
            "description": "<p>角色描述</p>"
          }
        ]
      }
    },
    "success": {
      "fields": {
        "Success 200": [
          {
            "group": "Success 200",
            "type": "Number",
            "optional": false,
            "field": "code",
            "description": "<p>结果标识</p>"
          },
          {
            "group": "Success 200",
            "type": "String",
            "optional": false,
            "field": "msg",
            "description": "<p>结果说明</p>"
          }
        ]
      },
      "examples": [
        {
          "title": "Success-Response:",
          "content": "\n{\n    code: 200,\n    msg: \"添加角色成功\"\n}",
          "type": "json"
        }
      ]
    },
    "filename": "./controller/Roles.Controller.js",
    "groupTitle": "Role模块"
  },
  {
    "type": "post",
    "url": "sys/search",
    "title": "角色搜索",
    "version": "1.0.0",
    "name": "addRole",
    "group": "Role模块",
    "success": {
      "fields": {
        "Success 200": [
          {
            "group": "Success 200",
            "type": "Number",
            "optional": false,
            "field": "code",
            "description": "<p>结果标识</p>"
          },
          {
            "group": "Success 200",
            "type": "String",
            "optional": false,
            "field": "msg",
            "description": "<p>结果说明</p>"
          }
        ]
      },
      "examples": [
        {
          "title": "Success-Response:",
          "content": "\n{\n        code: 200,\n        data: [] 所有角色信息\n    }",
          "type": "json"
        }
      ]
    },
    "filename": "./controller/Roles.Controller.js",
    "groupTitle": "Role模块"
  },
  {
    "type": "post",
    "url": "sys/addRoleByUser",
    "title": "用户配置角色",
    "version": "1.0.0",
    "name": "addRoleByUser",
    "group": "Role模块",
    "parameter": {
      "fields": {
        "Parameter": [
          {
            "group": "Parameter",
            "type": "String",
            "optional": false,
            "field": "uId",
            "description": "<p>用户id</p>"
          },
          {
            "group": "Parameter",
            "type": "Array",
            "optional": false,
            "field": "roleList",
            "description": "<p>角色id列表</p>"
          }
        ]
      }
    },
    "success": {
      "fields": {
        "Success 200": [
          {
            "group": "Success 200",
            "type": "Number",
            "optional": false,
            "field": "code",
            "description": "<p>结果标识</p>"
          },
          {
            "group": "Success 200",
            "type": "String",
            "optional": false,
            "field": "msg",
            "description": "<p>结果说明  给某个用户添加角色  uid 1, rid [1, 2,]</p>"
          }
        ]
      },
      "examples": [
        {
          "title": "Success-Response:",
          "content": "\n{\n    code: 200,\n    msg: \"角色设置完成\"\n   }",
          "type": "json"
        }
      ]
    },
    "filename": "./controller/Roles.Controller.js",
    "groupTitle": "Role模块"
  },
  {
    "type": "post",
    "url": "sys/getRoleByUser",
    "title": "查询用户的角色",
    "version": "1.0.0",
    "name": "getRoleByUser",
    "group": "Role模块",
    "parameter": {
      "fields": {
        "Parameter": [
          {
            "group": "Parameter",
            "type": "String",
            "optional": false,
            "field": "uId",
            "description": "<p>用户id</p>"
          }
        ]
      }
    },
    "success": {
      "fields": {
        "Success 200": [
          {
            "group": "Success 200",
            "type": "Number",
            "optional": false,
            "field": "code",
            "description": "<p>结果标识</p>"
          },
          {
            "group": "Success 200",
            "type": "String",
            "optional": false,
            "field": "msg",
            "description": "<p>结果说明 角色id列表 [1,2,3]</p>"
          }
        ]
      },
      "examples": [
        {
          "title": "Success-Response:",
          "content": "\n{\n       code: 200,\n       msg: \"查询成功\",\n       data:[1,2,3] //角色的id\n   }",
          "type": "json"
        }
      ]
    },
    "filename": "./controller/Roles.Controller.js",
    "groupTitle": "Role模块"
  },
  {
    "type": "post",
    "url": "sys/addUser",
    "title": "用户添加",
    "version": "1.0.0",
    "name": "addUser",
    "group": "user模块",
    "parameter": {
      "fields": {
        "Parameter": [
          {
            "group": "Parameter",
            "type": "String",
            "optional": false,
            "field": "username",
            "description": "<p>用户名</p>"
          },
          {
            "group": "Parameter",
            "type": "String",
            "optional": false,
            "field": "password",
            "description": "<p>密码</p>"
          },
          {
            "group": "Parameter",
            "type": "String",
            "optional": false,
            "field": "sex",
            "description": "<p>性别(男/女)</p>"
          },
          {
            "group": "Parameter",
            "type": "String",
            "optional": false,
            "field": "avatar",
            "description": "<p>头像(url地址)</p>"
          },
          {
            "group": "Parameter",
            "type": "String",
            "optional": false,
            "field": "nickname",
            "description": "<p>昵称</p>"
          },
          {
            "group": "Parameter",
            "type": "String",
            "optional": false,
            "field": "token",
            "description": "<p>凭证</p>"
          }
        ]
      }
    },
    "success": {
      "fields": {
        "Success 200": [
          {
            "group": "Success 200",
            "type": "Number",
            "optional": false,
            "field": "code",
            "description": "<p>结果标识</p>"
          },
          {
            "group": "Success 200",
            "type": "String",
            "optional": false,
            "field": "msg",
            "description": "<p>结果说明</p>"
          }
        ]
      },
      "examples": [
        {
          "title": "Success-Response:",
          "content": "{\n     code: 200,\n     msg: \"登录成功\"\n   }",
          "type": "json"
        }
      ]
    },
    "filename": "./controller/UserInfo.Controller.js",
    "groupTitle": "user模块"
  },
  {
    "type": "post",
    "url": "sys/delete",
    "title": "用户(软删除)",
    "version": "1.0.0",
    "name": "delete",
    "group": "user模块",
    "parameter": {
      "fields": {
        "Parameter": [
          {
            "group": "Parameter",
            "type": "String",
            "optional": false,
            "field": "uId",
            "description": "<p>用户id</p>"
          }
        ]
      }
    },
    "success": {
      "fields": {
        "Success 200": [
          {
            "group": "Success 200",
            "type": "Number",
            "optional": false,
            "field": "code",
            "description": "<p>结果标识</p>"
          },
          {
            "group": "Success 200",
            "type": "String",
            "optional": false,
            "field": "msg",
            "description": "<p>结果说明</p>"
          }
        ]
      },
      "examples": [
        {
          "title": "Success-Response:",
          "content": " {\n    code: 200,\n    msg: \"删除成功\"\n}",
          "type": "json"
        }
      ]
    },
    "filename": "./controller/UserInfo.Controller.js",
    "groupTitle": "user模块"
  },
  {
    "type": "get",
    "url": "sys/getlists",
    "title": "用户分页",
    "version": "1.0.0",
    "name": "getlists",
    "group": "user模块",
    "parameter": {
      "fields": {
        "Parameter": [
          {
            "group": "Parameter",
            "type": "Number",
            "optional": false,
            "field": "pageIndex",
            "description": "<p>(第几页,必须从1开始)</p>"
          },
          {
            "group": "Parameter",
            "type": "Number",
            "optional": false,
            "field": "pageSize",
            "description": "<p>(页大小,默认10条)</p>"
          }
        ]
      }
    },
    "success": {
      "fields": {
        "Success 200": [
          {
            "group": "Success 200",
            "type": "Number",
            "optional": false,
            "field": "code",
            "description": "<p>结果标识</p>"
          },
          {
            "group": "Success 200",
            "type": "String",
            "optional": false,
            "field": "msg",
            "description": "<p>结果说明</p>"
          },
          {
            "group": "Success 200",
            "type": "Number",
            "optional": false,
            "field": "count",
            "description": "<p>数据库的总条数,不是分页的总条</p>"
          }
        ]
      },
      "examples": [
        {
          "title": "Success-Response:",
          "content": " { \n      code: 200,\n        msg: \"查询成功\",\n        data: []\n}",
          "type": "json"
        }
      ]
    },
    "filename": "./controller/UserInfo.Controller.js",
    "groupTitle": "user模块"
  },
  {
    "type": "post",
    "url": "sys/login",
    "title": "登录",
    "version": "1.0.0",
    "name": "login",
    "group": "user模块",
    "parameter": {
      "fields": {
        "Parameter": [
          {
            "group": "Parameter",
            "type": "String",
            "optional": false,
            "field": "user",
            "description": "<p>用户名</p>"
          },
          {
            "group": "Parameter",
            "type": "String",
            "optional": false,
            "field": "pwd",
            "description": "<p>密码</p>"
          }
        ]
      }
    },
    "success": {
      "fields": {
        "Success 200": [
          {
            "group": "Success 200",
            "type": "Number",
            "optional": false,
            "field": "code",
            "description": "<p>结果标识</p>"
          },
          {
            "group": "Success 200",
            "type": "String",
            "optional": false,
            "field": "msg",
            "description": "<p>结果说明</p>"
          },
          {
            "group": "Success 200",
            "type": "Object",
            "optional": false,
            "field": "data",
            "description": "<p>用户信息</p>"
          },
          {
            "group": "Success 200",
            "type": "String",
            "optional": false,
            "field": "token",
            "description": "<p>用户信息</p>"
          }
        ]
      },
      "examples": [
        {
          "title": "Success-Response:",
          "content": "\n{\n       code: 200,\n       msg: \"登录成功\",\n       data: { },\n       token:\"凭证\"\n   }",
          "type": "json"
        }
      ]
    },
    "filename": "./controller/UserInfo.Controller.js",
    "groupTitle": "user模块"
  },
  {
    "type": "get",
    "url": "sys/search",
    "title": "用户模糊搜索",
    "version": "1.0.0",
    "name": "search",
    "group": "user模块",
    "parameter": {
      "fields": {
        "Parameter": [
          {
            "group": "Parameter",
            "type": "String",
            "optional": false,
            "field": "field",
            "description": "<p>(用户名或昵称)</p>"
          }
        ]
      }
    },
    "success": {
      "fields": {
        "Success 200": [
          {
            "group": "Success 200",
            "type": "Number",
            "optional": false,
            "field": "code",
            "description": "<p>结果标识</p>"
          },
          {
            "group": "Success 200",
            "type": "String",
            "optional": false,
            "field": "msg",
            "description": "<p>结果说明</p>"
          }
        ]
      },
      "examples": [
        {
          "title": "Success-Response:",
          "content": " { \n          code: 200,\n            msg: \"查询成功\",\n            data: []\n}",
          "type": "json"
        }
      ]
    },
    "filename": "./controller/UserInfo.Controller.js",
    "groupTitle": "user模块"
  },
  {
    "type": "post",
    "url": "sys/update",
    "title": "用户修改",
    "version": "1.0.0",
    "name": "update",
    "group": "user模块",
    "parameter": {
      "fields": {
        "Parameter": [
          {
            "group": "Parameter",
            "type": "String",
            "optional": false,
            "field": "password",
            "description": "<p>密码</p>"
          },
          {
            "group": "Parameter",
            "type": "String",
            "optional": false,
            "field": "sex",
            "description": "<p>性别(男/女)</p>"
          },
          {
            "group": "Parameter",
            "type": "String",
            "optional": false,
            "field": "avatar",
            "description": "<p>头像(url地址)</p>"
          },
          {
            "group": "Parameter",
            "type": "String",
            "optional": false,
            "field": "nickname",
            "description": "<p>昵称</p>"
          },
          {
            "group": "Parameter",
            "type": "String",
            "optional": false,
            "field": "status",
            "description": "<p>状态(默认是1,可以不传)</p>"
          }
        ]
      }
    },
    "success": {
      "fields": {
        "Success 200": [
          {
            "group": "Success 200",
            "type": "Number",
            "optional": false,
            "field": "code",
            "description": "<p>结果标识</p>"
          },
          {
            "group": "Success 200",
            "type": "String",
            "optional": false,
            "field": "msg",
            "description": "<p>结果说明</p>"
          }
        ]
      },
      "examples": [
        {
          "title": "Success-Response:",
          "content": " {\n    code: 200,\n    msg: \"修改成功\"\n}",
          "type": "json"
        }
      ]
    },
    "filename": "./controller/UserInfo.Controller.js",
    "groupTitle": "user模块"
  }
] });
